package com.example.testproject.ext

import android.content.Context
import android.view.View
import com.example.testproject.R
import com.google.android.material.bottomsheet.BottomSheetDialog

/**
 *
 * @ClassName: dialogExt
 * @Author: android 超级兵
 * @CreateDate: 11/25/21$ 10:38 AM$
 * TODO
 */


fun Context.bottomDialog(view: View) = let {
    BottomSheetDialog(this, R.style.BottomSheetDialogStyle).apply {
        setContentView(view)
        window?.findViewById<View>(R.id.design_bottom_sheet)
            ?.setBackgroundResource(android.R.color.transparent)
    }
}





